<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../css/main.css" />
    <link rel="stylesheet" href="../css/bootstrap.min.css" />
    <link rel="stylesheet" href="../css/jquery.datetimepicker.css" />
    <script src="../js/jquery.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script src="../js/jquery.datetimepicker.js"></script>
</head>
<body>
<input type='text' class="form-control" style="width: 100px" id='datetimepicker' />

</body>
<script type="text/javascript">
    //http://www.xwcms.net/js/rqsj/57381.html
    $(function(){
        $('#datetimepicker').datetimepicker({
            timepicker:false,
            format:'Y-m-d',
            formatDate:'Y-m-d'
        });

    });
</script>
</html>